package com.lg.atp.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lg.atp.dao.TblTestTaskCaseDeviceMapper;
import com.lg.atp.entity.TblTestTaskCaseDevice;
import com.lg.atp.service.ITestTaskDeviceService;
@Service("iTestTaskDeviceService")
public class ITestTaskDevicesServiceImpl implements ITestTaskDeviceService {
	
	@Autowired
	private TblTestTaskCaseDeviceMapper tblTestTaskCaseDeviceMapper;
	
	@Override
	public int deleteByTaskDeviceId(Long id) {
		// TODO Auto-generated method stub
		return tblTestTaskCaseDeviceMapper.deleteByTaskDeviceId(id);
	}

	@Override
	public int insertTaskDevice(TblTestTaskCaseDevice record) {
		// TODO Auto-generated method stub
		return tblTestTaskCaseDeviceMapper.insertTaskDevice(record);
	}

	@Override
	public int insertTaskDeviceSelective(TblTestTaskCaseDevice record) {
		// TODO Auto-generated method stub
		return tblTestTaskCaseDeviceMapper.insertTaskDeviceSelective(record);
	}

	@Override
	public TblTestTaskCaseDevice selectByTaskDeviceId(Long id) {
		// TODO Auto-generated method stub
		return tblTestTaskCaseDeviceMapper.selectByTaskDeviceId(id);
	}

	@Override
	public int updateByTaskDeviceIdSelective(TblTestTaskCaseDevice record) {
		// TODO Auto-generated method stub
		return tblTestTaskCaseDeviceMapper.updateByTaskDeviceIdSelective(record);
	}

	@Override
	public int updateByTaskDeviceId(TblTestTaskCaseDevice record) {
		// TODO Auto-generated method stub
		return tblTestTaskCaseDeviceMapper.updateByTaskDeviceId(record);
	}
	
	@Override
	public List<TblTestTaskCaseDevice> getTaskDeviceByTaskId(Long TaskId) {
		// TODO Auto-generated method stub
		return tblTestTaskCaseDeviceMapper.getTaskDeviceByTaskId(TaskId);
	}

}
